﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;

namespace NerdDinner.Data.Entities
{
    public class WalkCategory
    {
        public virtual short CategoryId{get; private set;}
        public virtual string CategoryName { get; set; }
        public virtual string CategoryDesc { get; set; }
        [JsonIgnore]
        public virtual IList<Walk> Walks { get; set; }

        public WalkCategory()
        {
            Walks = new List<Walk>();
        }
 
        public virtual void AddWalk(Walk walk)
        {
            walk.WalkCategory = this;
            Walks.Add(walk);
        }
    }
}
